package com.java1412.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author java1412
 * @create 2021-05-14 14:15
 */
@Slf4j
@Controller
public class NegotiationController {
    @GetMapping(value = "/show/{type}")
    public String showUser(@PathVariable("type") String type) {
        log.warn("type={}", type);
        return "跟java1412学习ContentNegotiatingViewResolver!";
    }
}
